
use serde::{Serialize, Deserialize};

#[derive(Debug, Deserialize, Serialize)]
pub struct TaskInstance {
    pub id: String,
    pub process_instance_id: String,
    pub process_definition_id: String,
    pub task_definition_id: String,
    pub start_time: String,
    pub end_time: Option<String>,
    pub assignee: Option<String>,
    pub status: String,
    pub variables: HashMap<String, serde_json::Value>,
}

#[derive(Debug, Deserialize, Serialize)]
pub enum TaskStatus {
    Assigned,
    Started,
    Completed,
}